First, ensure a license is activated (see
License Activation).
Standard licensing is used if .NET Framework licensing is not (see .NET Framework Runtime Licensing). If you are transitioning a project away from using the legacy licenses.licx technique but targeting Dart .NET Framework assemblies, the licenses.licx file should be removed from the project or Dart component entries removed from the licenses.licx file. If you are upgrading from a previous version, you will need to remove existing references to License.Set() from your code or update them as described in step 4 below.
To generate a runtime license for your application:
- With an activated license present, run your application so that a licensed component’s constructor is called (or call Dart.Sockets.License.Create() when your application starts).
- The runtime license is created and saved to Dart.Sockets.lic beside Dart.Sockets.dll in the output directory. The runtime license is bound to the application’s assembly name and should be distributed with your application.
- If Dart.Sockets.License.Create() was used, remove it from your code.
- If distributing Dart.Sockets.lic is undesirable (when using a build server, for example, or to minimize the size of your distribution), then a runtime license string can be used instead:
- Use any text editor to open the Dart.Sockets.lic file located in the output directory.
- Copy the runtime license string from the first line.
- In your application's code, paste the runtime license string in between the quotes of License.Set, as follows:
Dart.Sockets.License.Set("RuntimeLicenseString");
If desired, you can create a runtime license for your intermediate assembly so it can be used in any application:
- Obtain an Extended Distribution Product Key from Dart and activate it. (Purchase may be required.)
- Follow the steps above, using Dart.Sockets.License.Create() in step 1.